<template>
  <div class="prism-player" id="player-con"></div>
</template>

<script>
  export default {
    name: "Aliplayer",
    mounted() {
      var player = new Aliplayer({
          "id": "player-con",
          "source": "//player.alicdn.com/video/aliyunmedia.mp4",
          "cover": 'https://img.alicdn.com/tps/TB1EXIhOFXXXXcIaXXXXXXXXXXX-760-340.jpg',
          "width": "100%",
          "height": "500px",
          "autoplay": true,
          "isLive": false,
          "rePlay": false,
          "playsinline": true,
          "preload": true,
          "controlBarVisibility": "hover",
          "useH5Prism": true
        }, function (player) {
          console.log("The player is created");
        }
      );
    }
  }
</script>

<style scoped>

</style>
